<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

//Database config
$Config->load('db.php', 'scene');
$Config->load('tables.php', 'scene');

//Languages and internationalization
$Config->load('languages.php', 'scene');
$Vars->setLanguage();
$Config->load('i18n.php', 'scene');

//Other config
$Config->load('misc.php');
$Config->load('actions.php');
$Config->load('routes.php');

$Debug->setSettings('debug');

//Detect language and exit mode and route
$Vars->setExitMode();
$Vars->setRoute();

//Session config
$Config->load('users.php');
include_once(filePath('includes|session.php'));
$Config->load('tables.php', 'module');

//Set the templates and data config according with the current route
$Config->setRouteConfig('templates', array('css', 'js'));
$Config->setRouteConfig('data');
?>